<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| 	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['scaffolding_trigger'] = 'scaffolding';
|
| This route lets you set a "secret" word that will trigger the
| scaffolding feature for added security. Note: Scaffolding must be
| enabled in the controller in which you intend to use it.   The reserved 
| routes must come before any wildcard or regular expression routes.
|
*/

$route['default_controller'] = "knowledge";
$route['scaffolding_trigger'] = "";

/*Administrator*/
$route['administrator/org/manage-staff'] = "administrator/org_manage_staff";
$route['administrator/org/manage-staff/choose-staff-for/:any/(:num)'] = "administrator/choose_staff/$1";
$route['administrator/org/manage-org'] = "administrator/manage_organization";
$route['administrator/blog/category-control'] = "administrator/blog_category_control";

$route['organization/view_details/(:num)'] = "organization/view_details_by_id/$1";	//read news of organization by id
$route['organization/category/:any/(:num)'] = "organization/view_content_org_by_id/$1";	//category of organization by id
$route['organization/delete/org_news/(:num)'] = "organization/delete_org_news_by_id/$1";	//delete org news by id
$route['organization/edit/org_news/(:num)'] = "organization/edit_news/$1";	//edit org news by id

/*Blog*/
$route['blog/category/(:num)'] = "blog/category/$1";	//view blog by category id.
$route['blog/create_blog/category/(:num)'] = "blog/create_blog_by_category_id/$1";	//create blog by category id.
$route['blog/:any/entry/(:num)'] = "blog/read_by_blog_id/$1";	//read blog content by id.
$route['blog/read/:any'] = "blog/my_blog";	//read blog by member_id my blog.
$route['blog/:any/delete/entry_id/(:num)'] = "blog/delete_my_blog_id/$1";	//delete my blog.
$route['blog/all_blog'] = "blog/all_blog";	//view all blog.
$route['blog/delete_comment/(:num)/blog_id/(:num)/(:any)'] = "blog/delete_comment/$1/$2/$3"; //delete comment
$route['blog/:any/edit/entry_id/(:num)'] = "blog/edit_my_blog_id/$1";	//edit my blog.

/*cops*/
$route['cops/groups/(:num)'] = "cops/views_group_detail_by_id/$1";
$route['cops/join/agreement/(:num)'] = "cops/join_group_agreement/$1";
$route['cops/join/into_group/(:num)'] = "cops/into_group/$1";
$route['cops/leave/group/(:num)'] = "cops/leave_group_by_id/$1";
$route['cops/delete_group/(:num)'] = "cops/delete_group_by_id/$1";
$route['cops/discuss/post'] = "cops/discuss_post";
$route['cops/groups/(:num)/delete_discuss/(:num)'] = "cops/discuss_del/$1/$2";
$route['cops/groups/show_discuss/(:num)'] = "cops/show_discuss_by_group_id/$1;";
$route['cops/groups/upload_files/(:num)'] = "cops/upload_file_to_group_id/$1";
$route['cops/groups/download_files/(:any)'] = "cops/download_files/$1";

/* End of file routes.php */
/* Location: ./system/application/config/routes.php */